package FourWeek;

public class DiGui2 {
    public static void main(String[] args) {
        System.out.println("五的阶乘"+num(5));
    }
    public static int num(int n){
        int a;//int a = n;
        if (n==1){
            a=1;
        }else{
            a =num(n-1)*n;//a*=num(n:n-1);
        }
        return a;
    }
}
